﻿using Abp.Configuration.Startup;
using LZ.DCode.MongoDB.MongoDb.Configuration;

namespace LZ.DCode.MongoDB.Configuration.Startup
{
    /// <summary>  
    /// 定义扩展方法 <see cref="IModuleConfigurations"/> 允许配置ABP MongoDB模块
    /// </summary>
    public static class AbpMongoDbConfigurationExtensions
    {
        /// <summary>
        /// 用于配置ABP MongoDb模块。
        /// </summary>
        public static IAbpMongoDbModuleConfiguration AbpMongoDb(this IModuleConfigurations configurations)
        {
            return configurations.AbpConfiguration.Get<IAbpMongoDbModuleConfiguration>();
        }
    }
}
